/**
 * @(#)SimulatorTaskVerDAOImpl.java 2016年12月1日
 * Copyright(C) 2016 ZHEXIN IT CO.,LTD. All rights reserved.
 */
package org.jsbd.boss.dao.impl;

import java.util.List;

import org.jsbd.boss.dao.IThirdSmsConfigDAO;
import org.jsbd.boss.domian.channel.ThirdSmsConfig;
import org.springframework.stereotype.Service;

/**
 * 模拟器版本号
 * 
 * @author <a href="mailto:xupengcheng@zhexinit.com" >徐鹏程</a>
 * @version 1.0.0
 */
@Service
public class ThirdSmsConfigDAOImpl extends CrackBaseDao implements IThirdSmsConfigDAO {

	/*
	 * (non-Javadoc)
	 * 
	 * @see
	 * org.jsbd.boss.dao.IThirdSmsConfigDAO#insertThirdSmsConfig(org.jsbd.boss
	 * .domian.channel.ThirdSmsConfig)
	 */
	@Override
	public Integer insertThirdSmsConfig(ThirdSmsConfig thirdSmsConfig) {
		return (Integer) super.insert("qy_smsconfig.INSERT_CONFIG", thirdSmsConfig);
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see
	 * org.jsbd.boss.dao.IThirdSmsConfigDAO#updateThirdSmsConfig(org.jsbd.boss
	 * .domian.channel.ThirdSmsConfig)
	 */
	@Override
	public Integer updateThirdSmsConfig(ThirdSmsConfig thirdSmsConfig) {
		return super.update("qy_smsconfig.UPDATE_CONFIG", thirdSmsConfig);
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see
	 * org.jsbd.boss.dao.IThirdSmsConfigDAO#selectThirdSmsConfig(java.lang.String
	 * )
	 */
	@Override
	public ThirdSmsConfig selectConfig(ThirdSmsConfig thirdSmsConfig) {
		return (ThirdSmsConfig) super.queryForObject("qy_smsconfig.SELECT_CONFIG", thirdSmsConfig);
	}

	@Override
	public List<ThirdSmsConfig> selectPageList(ThirdSmsConfig thirdSmsConfig) {
		return super.queryForList("qy_smsconfig.SELECT_PAGE_LIST", thirdSmsConfig);
	}

	@Override
	public List<ThirdSmsConfig> selectList(ThirdSmsConfig thirdSmsConfig) {
		return super.queryForList("qy_smsconfig.SELECT_LIST", thirdSmsConfig);
	}

	@Override
	public Integer selectCount(ThirdSmsConfig thirdSmsConfig){
		return super.queryForCount("qy_smsconfig.SELECT_COUNT", thirdSmsConfig);
	}
	
	@Override
	public List<ThirdSmsConfig> selectThirdSmsList(ThirdSmsConfig thirdSmsConfig) {
		return super.queryForList("qy_smsconfig.SELECT_SMS_LIST", thirdSmsConfig);
	}
	

	/*
	 * (non-Javadoc)
	 * 
	 * @see
	 * org.jsbd.boss.dao.IThirdSmsConfigDAO#delThirdSmsConfig(java.lang.String)
	 */
	@Override
	public int delThirdSmsConfig(Integer id) {
		return super.delete("qy_smsconfig.DEL_CONFIG", id);
	}

}
